package com.spring.springmvc.表白墙;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageWallService {

    @Autowired
    ImessageInfo imessageInfo;

    Integer insertMessage(Message message){
        return imessageInfo.insertMessageInfo(message);
    }

    List<Message> getMessages(){
        return imessageInfo.selectMessage();
    }
}
